@layout("/common/container.html", {"title" : "服务器状态"}){
<div class="row">
    <div class="col-md-6 col-12 e-hide">
        <div class="card">
            <div class="card-head">
                <div class="card-head-caption">
                    <div class="card-head-title">
                        <span class="card-head-icon">
                            <i class="la la-server"></i>
                        </span>
                        <h3 class="card-head-text">
                            CPU
                        </h3>
                    </div>
                </div>
            </div>
            <div class="card-body e--padding-5">
                <div class="cpu-charts charts"></div>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-12 e-hide">
        <div class="card">
            <div class="card-head">
                <div class="card-head-caption">
                    <div class="card-head-title">
                        <span class="card-head-icon">
                            <i class="la la-server"></i>
                        </span>
                        <h3 class="card-head-text">
                            内存
                        </h3>
                    </div>
                </div>
            </div>
            <div class="card-body  e--padding-5">
                <div class="jvm-charts charts"></div>
            </div>
        </div>
    </div>
    <div class="col-12">
        <div class="card">
            <#card:head title="Java虚拟机信息" icon="la la-server"/>
            <div class="card-body">
                <table class="table table-striped e-table">
                    <tbody>
                    <tr>
                        <td>名称</td>
                        <td>${object.systemProperties.javaVmName}</td>
                        <td>版本</td>
                        <td>${object.systemProperties.javaVmSpecificationVersion} /
                            ${object.systemProperties.javaVmVersion} / ${object.systemProperties.javaVmVendor}
                        </td>
                    </tr>
                    <tr>
                        <td>安装路径</td>
                        <td colspan="3">${object.systemProperties.javaHome}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="card">
            <#card:head title="系统参数" icon="la la-server"/>
            <div class="card-body">
                <table class="table table-striped e-table">
                    <tbody>
                    <tr>
                        <td>系统名称</td>
                        <td colspan="3">${object.projectProperties.projectName}</td>
                    </tr>
                    <tr>
                        <td>文件上传路径</td>
                        <td colspan="3">${object.projectProperties.projectFileUploadPath}</td>
                    </tr>
                    <tr>
                        <td>开启登录验证码</td>
                        <td>
                            @if(object.projectProperties.projectLoginVerificationCode){
                            <span class="badge badge--success badge--inline badge--pill badge--rounded">启用</span>
                            @}else{
                            <span class="badge badge--danger badge--inline badge--pill badge--rounded">禁用</span>
                            @}
                        </td>
                        <td>会话有效期</td>
                        <td>${object.projectProperties.projectSessionInvalidateTime} 分钟</td>
                    </tr>
                    <tr>
                        <td>启用记住密码</td>
                        <td>
                            @if(object.projectProperties.projectLoginRemember){
                            <span class="badge badge--success badge--inline badge--pill badge--rounded">启用</span>
                            @}else{
                            <span class="badge badge--danger badge--inline badge--pill badge--rounded">禁用</span>
                            @}
                        </td>
                        <td>记住密码有效期</td>
                        <td>${object.projectProperties.projectLoginRememberInvalidateTime} 天</td>
                    </tr>
                    <tr>
                        <td>登录尝试次数</td>
                        <td>${object.projectProperties.projectLoginAttempts} 次</td>
                        <td>账户锁定时长</td>
                        <td>${object.projectProperties.projectLoginLockLength} 分钟</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="card">
            <#card:head title="服务器信息" icon="la la-server"/>
            <div class="card-body">
                <table class="table table-striped e-table">
                    <tbody>
                    <tr>
                        <td>服务器名称</td>
                        <td>${object.systemProperties.userName}</td>
                        <td>操作系统</td>
                        <td>${object.systemProperties.osName} ${object.systemProperties.osVersion}</td>
                        <td>架构</td>
                        <td>${object.systemProperties.osArch}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<!--begin::页面脚本 -->
<#script src="static/modular/sys/status/view.js" />
<!--end::页面脚本 -->
@}